﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="WUCAportesYRetirosPortafolio.ascx.cs" Inherits="WebUserControls_WUCAportesYRetirosPortafolio" %>
<link href="../Styles/SiteEcoGroup.css" rel="stylesheet" type="text/css" />


<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
        <td width="100%" align="center">
            <h4>
                Aportes, Retiros y Utilidad del Portafolio</h4>
            <br />
        </td>
    </tr>
    <tr>
        <td align="center" valign="top" bgcolor="#FFFFFF">
            <br />
            <table width="97%" border="0" cellspacing="1" cellpadding="1">
                <tr>
                    <td width="61%" align="left">
                        <strong>Portafolio:</strong>
                        <asp:Label runat="server" ID="lblAlias"></asp:Label>
                        &nbsp;-
                        <asp:Label runat="server" ID="lblTipo"></asp:Label>
                    </td>
                    <td width="39%" align="left">
                        &nbsp;</td>
                </tr>
            </table>
            <br />
        </td>
    </tr>
</table>
<br />
<br />
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0" 
   >
    <tr>
        <td>
                    <table runat="server" id="Table1" width="100%">
                        <tr>
                            <td align="right">
                                &nbsp;<asp:LinkButton 
                                    ID="LbtnVerGrid" runat="server" onclick="LbtnVerGrid_Click">Ver Resumen</asp:LinkButton>
                                &nbsp;
                                <asp:LinkButton ID="LinkButton1" runat="server"
                                    Text="Imprimir"></asp:LinkButton>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                           
                                            <table width="100%" border="0" cellpadding="0" cellspacing="0" 
                                                class="tabla_verde" bgcolor="#EFEFEF">
                                                <tr>
                                                    <td align="left" class="tabla_verde">
                                                        Periodos
                                                    </td>
                                                </tr>
                                            </table>
                                            <table width="100%" border="0" cellpadding="5" cellspacing="1" 
                                                bgcolor="#CCCCCC">
                                                <tr>
                                                    <td align="left" valign="top" bgcolor="#FFFFFF">
                                                    <table width="100%">
                                                                    <tr>
                                                                        <td style="width: 400px">
                                                                            &nbsp;
                                                                        </td>
                                                                        <td style="width: 92px">
                                                                            <strong>Periodo:</strong>
                                                                        </td>
                                                                        <td style="width: 302px;">
                                                                            <asp:DropDownList ID="ddlTipoPeriodo" runat="server" Width="100px">
                                                                                <asp:ListItem Value="YearToDate">YTD</asp:ListItem>
                                                                                <asp:ListItem Value="QuarterToDate">QTD</asp:ListItem>
                                                                                <asp:ListItem Value="MonthToDate">MTD</asp:ListItem>
                                                                                <asp:ListItem>Desde Inicio</asp:ListItem>
                                                                            </asp:DropDownList>
                                                                        </td>
                                                                        <td>
                                                                            <strong>Fecha:</strong>
                                                                        </td>
                                                                        <td style="width: 525px;">
                                                                            <asp:TextBox ID="txtFechaPeriodo" runat="server" CssClass="SeleccionFecha"></asp:TextBox>
                                                                        </td>
                                                                        <td >                                                                            
                                                                            <asp:LinkButton ID="lbtnFiltrar" runat="server" OnClick="lbtnFiltrar_Click">Filtrar</asp:LinkButton>                                                                            
                                                                        </td>
                                                                    </tr>
                                                                    </table>
                                                            </td>
                                                </tr>
                                            </table>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <table id="TableActivoPasivo" runat="server" width="100%" align="center" 
                                    bgcolor="White">
                                    <tr>
                                        <td align="center">
                                            
                                            <asp:UpdatePanel ID="udpacordion" runat="server" UpdateMode="Conditional">
                                                <ContentTemplate>
                                                    <div id="DivAportesYRetiros" class="Acordion">
                                                    <h3><a href="#">Resumen</a></h3>
                                                    <div>
                                                        <table width="50%"  cellspacing="0"  >
                                                            <tr>
                                                                <td class="GridViewHeaderStyle"  bgcolor="#C9CCD3" colspan="3" style="color: #FFFFFF; text-align: right;">
                                                                    <asp:Label ID="lblDivisa" runat="server" Font-Size="Large" 
                                                                        style="font-size: small; font-weight: 700"></asp:Label>
                                                                        &nbsp;
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td   style="text-align:right; border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: #C9CCD3; border-left-style: solid; border-left-width: 1px; border-left-color: #C9CCD3;" 
                                                                    class="GridViewRowStyle">
                                                                    <asp:Label ID="lblEtiquetaValorInicial" runat="server" Font-Size="Large" 
                                                                        Text="Valor de mercado el " style="font-size: small; font-weight: 700;"></asp:Label>
                                                                </td>
                                                                <td style="text-align: right; border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: #C9CCD3;" 
                                                                    class="GridViewRowStyle">
                                                                    <asp:Label ID="lblValorInicial" runat="server" Font-Size="Large" 
                                                                        style="font-size: small"></asp:Label>
                                                                </td>
                                                                <td style="text-align: right; border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: #C9CCD3; border-right-style: solid; border-right-width: 1px; border-right-color: #C9CCD3;" 
                                                                    class="GridViewRowStyle">&nbsp;</td>
                                                            </tr>
                                                            <tr>
                                                                <td   style="text-align: right; border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: #C9CCD3; border-left-style: solid; border-left-width: 1px; border-left-color: #C9CCD3; background-color: #FFFFFF;" 
                                                                    >
                                                                    <asp:Label ID="lblEtiquetaAportes" runat="server" Font-Size="Large" 
                                                                        Text="Aportes:" style="font-size: small; font-weight: 700;"></asp:Label>
                                                                </td>
                                                                <td style="text-align: right; border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: #C9CCD3; background-color: #FFFFFF;" 
                                                                     >
                                                                    <asp:Label ID="lblAportes" runat="server" Font-Size="Large" 
                                                                        style="font-size: small" ></asp:Label>
                                                                </td>
                                                                <td style="text-align: right; border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: #C9CCD3; border-right-style: solid; border-right-width: 1px; border-right-color: #C9CCD3; background-color: #FFFFFF;" 
                                                                    class="GridViewRowStyle">&nbsp;</td>
                                                            </tr>
                                                            <tr>
                                                                <td  style="text-align: right; border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: #C9CCD3; border-left-style: solid; border-left-width: 1px; border-left-color: #C9CCD3;" 
                                                                    class="GridViewRowStyle">
                                                                    <asp:Label ID="lbEtiquetalRetiros" runat="server" Font-Size="Large" 
                                                                        Text="Retiros:" style="font-size: small; font-weight: 700;"></asp:Label>
                                                                </td>
                                                                <td style="text-align: right; border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: #C9CCD3;" 
                                                                    class="GridViewRowStyle">
                                                                    <asp:Label ID="lblRetiros" runat="server" Font-Size="Large" 
                                                                        style="font-size: small" ></asp:Label>
                                                                </td>
                                                                <td style="text-align: right; border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: #C9CCD3; border-right-style: solid; border-right-width: 1px; border-right-color: #C9CCD3;" 
                                                                    class="GridViewRowStyle">&nbsp;</td>
                                                            </tr>
                                                            <tr>
                                                                <td style=" text-align: right; border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: #C9CCD3; border-left-style: solid; border-left-width: 1px; border-left-color: #C9CCD3; background-color: #FFFFFF;" 
                                                                     >
                                                                    <asp:Label ID="lblEtiquetaValorFinal" runat="server" Font-Size="Large" 
                                                                        Text="Valor de mercado el " style="font-size: small; font-weight: 700;"></asp:Label>
                                                                </td>
                                                                <td style="text-align: right; border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: #C9CCD3; background-color: #FFFFFF;" 
                                                                    >
                                                                    <asp:Label ID="lblValorFinal" runat="server" Font-Size="Large" 
                                                                        style="font-size: small" ></asp:Label>
                                                                </td>
                                                                <td style="text-align: right; border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: #C9CCD3; border-right-style: solid; border-right-width: 1px; border-right-color: #C9CCD3; background-color: #FFFFFF;" 
                                                                    class="GridViewRowStyle">&nbsp;</td>
                                                            </tr>
                                                            <tr>
                                                                <td style="text-align: right; border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: #C9CCD3; border-left-style: solid; border-left-width: 1px; border-left-color: #C9CCD3;" 
                                                                    class="GridViewRowStyle">
                                                                    <asp:Label ID="lblEtiquetaUtilidad" runat="server" Font-Size="Large" 
                                                                        Text="Utilidad:" style="font-size: small; font-weight: 700;"></asp:Label>
                                                                </td>
                                                                <td style="text-align: right; border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: #C9CCD3;" 
                                                                    class="GridViewRowStyle">
                                                                    <asp:Label ID="lblUtilidad" runat="server" Font-Size="Large" 
                                                                        style="font-size: small" ></asp:Label>
                                                                </td>
                                                                <td style="text-align: right; border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: #C9CCD3; border-right-style: solid; border-right-width: 1px; border-right-color: #C9CCD3;" 
                                                                    class="GridViewRowStyle">&nbsp;</td>
                                                            </tr>
                                                        </table>
                                                    </div>
                                                    <h3><a href="#">Aportes</a></h3>
                                                    <div>
                                                        <asp:GridView ID="gvAportes" runat="server" AutoGenerateColumns="False" 
                                                            BackColor="White" BorderColor="#C9CCD3" BorderStyle="None" BorderWidth="1px" 
                                                            CellPadding="3" GridLines="Horizontal" ShowFooter="True" Width="100%">                                                            
                                                            <Columns>
                                                                <asp:BoundField DataField="Referencia" HeaderText="Referencia">
                                                                <HeaderStyle HorizontalAlign="Left" />
                                                                <ItemStyle HorizontalAlign="Left" />
                                                                </asp:BoundField>
                                                                <asp:BoundField DataField="Fecha" DataFormatString="{0:dd/MM/yyyy}" 
                                                                    HeaderText="Fecha">
                                                                <HeaderStyle HorizontalAlign="Left" />
                                                                <ItemStyle HorizontalAlign="Left" />
                                                                </asp:BoundField>
                                                                <asp:BoundField DataField="TipoMovimiento" HeaderText="Tipo">
                                                                <HeaderStyle HorizontalAlign="Left" />
                                                                <ItemStyle HorizontalAlign="Left" />
                                                                </asp:BoundField>
                                                                <asp:BoundField DataField="Destino" HeaderText="Destino">
                                                                <HeaderStyle HorizontalAlign="Left" />
                                                                <ItemStyle HorizontalAlign="Left" />
                                                                </asp:BoundField>
                                                                <asp:BoundField DataField="Monto" DataFormatString="{0:0,0.00}" 
                                                                    HeaderText="Monto">
                                                                <HeaderStyle HorizontalAlign="Right" />
                                                                <ItemStyle HorizontalAlign="Right" />
                                                                </asp:BoundField>
                                                                <asp:BoundField DataField="MontoDivisaBase" DataFormatString="{0:0,0.00}" 
                                                                    HeaderText="Monto base">
                                                                <HeaderStyle HorizontalAlign="Right" />
                                                                <ItemStyle HorizontalAlign="Right" />
                                                                </asp:BoundField>
                                                                <asp:BoundField DataField="TasaBase" DataFormatString="{0:0.00}" 
                                                                    HeaderText="Tasa">
                                                                <HeaderStyle HorizontalAlign="Right" />
                                                                <ItemStyle HorizontalAlign="Right" />
                                                                </asp:BoundField>
                                                            </Columns>
                                                            <FooterStyle CssClass="GridViewFooterStyle" />
                                                            <HeaderStyle CssClass="GridViewHeaderStyle" />
                                                            <PagerStyle CssClass="GridViewPagerStyle" />
                                                            <RowStyle CssClass="GridViewRowStyle" />
                                                            <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                                                            <SelectedRowStyle CssClass="GridViewSelectedRowStyle" />
                                                        </asp:GridView>
                                                        </div>
                                            <h3><a href="#">Retiros</a></h3>
                                            <div>
                                                <asp:GridView ID="gvRetiros" runat="server" AutoGenerateColumns="False" 
                                                    BackColor="White" BorderColor="#C9CCD3" BorderStyle="None" BorderWidth="1px" 
                                                    CellPadding="3" GridLines="Horizontal" ShowFooter="True" Width="100%">
                                                    <AlternatingRowStyle BackColor="#F7F7F7" />
                                                    <Columns>
                                                        <asp:BoundField DataField="Referencia" HeaderText="Referencia">
                                                        <HeaderStyle HorizontalAlign="Left" />
                                                        <ItemStyle HorizontalAlign="Left" />
                                                        </asp:BoundField>
                                                        <asp:BoundField DataField="Fecha" DataFormatString="{0:dd/MM/yyyy}" 
                                                            HeaderText="Fecha">
                                                        <HeaderStyle HorizontalAlign="Left" />
                                                        <ItemStyle HorizontalAlign="Left" />
                                                        </asp:BoundField>
                                                        <asp:BoundField DataField="TipoMovimiento" HeaderText="Tipo">
                                                        <HeaderStyle HorizontalAlign="Left" />
                                                        <ItemStyle HorizontalAlign="Left" />
                                                        </asp:BoundField>
                                                        <asp:BoundField DataField="Destino" HeaderText="Destino">
                                                        <HeaderStyle HorizontalAlign="Left" />
                                                        <ItemStyle HorizontalAlign="Left" />
                                                        </asp:BoundField>
                                                        <asp:BoundField DataField="Monto" DataFormatString="{0:0,0.00}" 
                                                            HeaderText="Monto">
                                                        <HeaderStyle HorizontalAlign="Right" />
                                                        <ItemStyle HorizontalAlign="Right" />
                                                        </asp:BoundField>
                                                        <asp:BoundField DataField="MontoDivisaBase" DataFormatString="{0:0,0.00}" 
                                                            HeaderText="Monto base">
                                                        <HeaderStyle HorizontalAlign="Right" />
                                                        <ItemStyle HorizontalAlign="Right" />
                                                        </asp:BoundField>
                                                        <asp:BoundField DataField="TasaBase" DataFormatString="{0:0.00}" 
                                                            HeaderText="Tasa">
                                                        <HeaderStyle HorizontalAlign="Right" />
                                                        <ItemStyle HorizontalAlign="Right" />
                                                        </asp:BoundField>
                                                    </Columns>
                                                    <FooterStyle CssClass="GridViewFooterStyle" />
                                                    <HeaderStyle CssClass="GridViewHeaderStyle" />
                                                    <PagerStyle CssClass="GridViewPagerStyle" />
                                                    <RowStyle CssClass="GridViewRowStyle" />
                                                    <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                                                    <SelectedRowStyle CssClass="GridViewSelectedRowStyle" />
                                                </asp:GridView>
                                            </div>
                                            </div>
                                                </ContentTemplate>
                                                <Triggers>
                                                    <asp:AsyncPostBackTrigger ControlID="lbtnFiltrar" EventName="Click" />
                                                </Triggers>
                                            </asp:UpdatePanel>
                                            
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
        </td>
    </tr>
</table>


